package com.comiee.airwalker.enchantment

import com.comiee.airwalker.AirWalkerMod
import net.minecraftforge.common.MinecraftForge
import net.minecraftforge.fml.common.event.FMLInitializationEvent
import net.minecraftforge.fml.common.registry.ForgeRegistries

/**
 * 附魔注册类
 */
object EnchantmentLoader {

  def apply(event: FMLInitializationEvent): Unit = {
    ForgeRegistries.ENCHANTMENTS.registerAll(
      EnchantmentAirWalker.setName("air_walker").setRegistryName(AirWalkerMod.MODID, "air_walker")
    )
    MinecraftForge.EVENT_BUS.register(EnchantmentAirWalker)
  }

  def destroy(): Unit = {
    EnchantmentAirWalker.destroy()
  }
}
